{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}


{% block title %}db Flasky{% endblock %}

{% block page_content %}
    <div class="page-header">
{#    <h1>Hello, {% if name  %}{{ name }}{% else %}Stranger{% endif %}</h1>#}
{#    {% if not known %}#}
{#    <p>Pleased to meet you!</p>#}
{#    {% else %}#}
{#    <p>Happy to see you again!</p>#}
{#    {% endif %}#}
    <h1>Hello, {% if current_user.is_authenticated %}{{ current_user.username }}{% else %}Stranger{% endif %}!</h1>
    </div>

   {{ wtf.quick_form(form) }}
{#<form method="POST">#}
{#    {{ form.hidden_tag() }}#}
{#    {{ form.name.label }} {{ form.name(id='my-text-field') }}#}
{#    {{ form.submit() }}#}
{#</form>#}
{% endblock %}
